class Constant(object):
    # configuration info
    KEYFROM = 'yourideas'
    KEY = '347281417'
    DOCTYPE = 'json'

    # error code
    OK = {'code': 0, 'msg':'OK'}

    ERROR_SENTENCETOOLONG = {
        'code':20, 
        'msg':'sentence too long'
    }

    ERROR_NOVALIDTRANSLATION = {
        'code':30, 
        'msg':'no valid translation'
    }

    ERROR_LANGUAGENOTSUPPORTED = {
        'code':40, 
        'msg':'language not supported'
    }

    ERROR_INVALIDKEY = {
        'code':50, 
        'msg':'API key is invalid'
    }

    # kidding words
    KIDDING_EMPTY = 'you mean "empty"?'

    # detail mode leading character
    MODE_DETAIL_LEADING_CHAR = '+'

    # bye
    BYE = "\nBye!"
